package cd.cdyb.sms.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Junpeng.Su
 * @create 2017-08-16 下午 3:46
 * @description
 */
public class AccessTokenModel {

    /**
     * 返回状态
     */
    private String code = "success";

    /**
     * 错误信息
     */
    private String errorMessage;

    /**
     * 返回数据
     */
    private AccessTokenBody data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public AccessTokenBody getData() {
        return data;
    }

    public void setData(AccessTokenBody data) {
        this.data = data;
    }

    public class AccessTokenBody {

        public AccessTokenBody() {
        }

        private String accessToken;

        private String tokenType;

        private String expiresIn;

        private String scope;

        @JsonProperty("access_token")
        public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        @JsonProperty("token_type")
        public String getTokenType() {
            return tokenType;
        }

        public void setTokenType(String tokenType) {
            this.tokenType = tokenType;
        }

        @JsonProperty("expires_in")
        public String getExpiresIn() {
            return expiresIn;
        }

        public void setExpiresIn(String expiresIn) {
            this.expiresIn = expiresIn;
        }

        public String getScope() {
            return scope;
        }

        public void setScope(String scope) {
            this.scope = scope;
        }
    }


}
